#include"../../include/SplitToolCppJieba.h"

//修改此处头文件

SplitToolCppJieba::SplitToolCppJieba(Configuration &conf)
:_conf(conf)
{

}

SplitToolCppJieba::~SplitToolCppJieba()
{
    ;
}

vector<string> SplitToolCppJieba::cut(const string &data)
{
    set<string> unDict = _conf.getStopWordList();
    
    //WordSegmentation wordSeg;
    vector<string> res = _wordSeg(data);

    vector<string> rres;
    for(auto s:res)
    {
        if(unDict.find(s) == unDict.end() && (s.size()>3 && s.size()<12))
        {
            rres.push_back(s);
        }
    }
    

    return rres;
}